<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>コントロールパネル</title>
    
    <link href="./assets/styles/default.css" rel="stylesheet" />
    <script src="./assets/scripts/libs/jquery-1.7.1.min.js" type="text/javascript"></script>
    <script src="./assets/scripts/import.js" type="text/javascript"></script>
</head>
<body>

{include file='include/header.inc.html'}

<div id="container">
	<aside id="accordion">
    	<div id="aside_inner">
    		{include file='include/menu.inc.html'}
        </div>
    </aside>
    
    <article>
    	<h2><span>&nbsp;</span>Page<p><a href="javascript:;">Open Plugins</a></p></h2>
        <nav>
            <ul>
            	<li class="active"><a href="{$smarty.server.SCRIPT_NAME}"><span>検索</span></a></li>
            	<li><a href="{$smarty.server.SCRIPT_NAME}?op=regist"><span>登録</span></a></li>
            </ul>
        </nav>
        
        <section id="content">
        
            <h3>検索</h3>
            <div id="search_form">
                <form name="form1" method="post" action="{$smarty.server.SCRIPT_NAME}" >
                
                    {include file='page/include/search_form.inc.html'}
                    
                    <p class="search_submit">
                        <button type="submit" class="submit"><span>検索</span></button>
                    </p>
                </form>
            </div>
            
            {if isset($pager->info)}
                {if isset($pager->info.all)}
                <p class="message">
                    {$pager->info.all|number_format}件登録されています。
                </p>
                {else}
                    <p class="message zero">見つかりませんでした。</p>
                {/if}
            {/if}


            {if isset($pager->info.all) && $pager->info.all > 0}	
                    {include file='page/include/search_list.inc.html'}
                    {include file='include/pager.inc.html'}
            {/if}
            
        </section>
    </article>
    
</div>

{include file='include/footer.inc.html'}

</body>
</html>